//
//  UserModel.m
//  iStore
//
//  Created by MacDev on 15/4/21.
//  Copyright (c) 2015年 mirrtalk. All rights reserved.
//

#import "UserModel.h"
#import "AFHTTPRequestOperationManager.h"
@implementation UserModel

+(UserModel *)sharedUserModel
{
    static UserModel * user_Model = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (user_Model == nil)
        {
            user_Model = [[UserModel alloc]init];
        }
    });
    return user_Model;
}
- (id)init
{
    self = [super init];
    if (self)
    {
        
    }
    return self;
}
- (void)resetUserModel:(NSDictionary*)dict
{
    _userName=[dict objectForKey:@"userName"];
    _shopName=[dict objectForKey:@"shops"];
    _phone=[NSString stringWithFormat:@"%@",[dict objectForKey:@"mobile"]];
    _email=[dict objectForKey:@"email"];
//    _shopAddress=[dict objectForKey:@""];
}

@end
